@extends('layouts.app')
@include('config.sidebar')
@section('content')
    <div class="content">
        <div class="row custom-invoice">
            <table class="table table-striped table-hover">
                <thead>
                <tr>
                    <th>类型</th>
                    <th>问题</th>
                    <th>答案</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                    @foreach($data as $item)
                    <tr>
                        <td>{{ $item->type}}</td>
                        <td>{{ $item->question }}</td>
                        <td>{{ $item->answer }}</td>
                        <td>
                            <a class="btn btn-primary btn-xs" href="{{ route('admin.config.question.edit', ['id' => $item->id]) }}"><i class="fa fa-edit"></i>编辑</a>
                            <a class="btn btn-primary btn-xs delete-confirm" data-href="{{ route('admin.config.question.delete', ['id' => $item->id]) }}"><i class="fa fa-trash-o"></i> 删除</a>
                        </td>
                    </tr>
                    @endforeach
                </tbody>
            </table>
            {{ $data->links() }}
        </div>
    </div>
@endsection
